package com.xc.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author xingchen
 * @create 2021/10/29 10:07
 */

@ApiModel(value = "用户注册对象", description = "用户注册请求对象")
public class UserRegisterRequest {


    @ApiModelProperty(value = "昵称", example = "王五")
    private String name;

    @ApiModelProperty(value = "密码", example = "123456")
    private String pwd;

    @ApiModelProperty(value = "头像", example = "https://startmall-img.oss-cn-beijing.aliyuncs.com/user/2021/10/27/06b8b1a46fb145f28c4bbce12608ddcf.jpg?versionId=CAEQFhiBgIDI5tiJ5hciIGQ0YjMyM2RlZmM4YzQ2YWE4ODgwNjE0NDhiMDc0ZmNm")
    @JsonProperty("head_img")
    private String headImg;

    @ApiModelProperty(value = "用户个人签名", example = "正值其时，脚踏实地")
    private String slogan;

    @ApiModelProperty(value = "0表示女,1表示男", example = "1")
    private Integer sex;

    @ApiModelProperty(value = "邮箱", example = "wzq9313@163.com")
    private String mail;

    @ApiModelProperty(value = "验证码", example = "956351")
    private String code;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "UserRegisterRequest{" +
                "name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", headImg='" + headImg + '\'' +
                ", slogan='" + slogan + '\'' +
                ", sex=" + sex +
                ", mail=" + mail +
                ", code=" + code +
                '}';
    }
}
